<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Integer currPage = (Integer)request.getAttribute("currPage");
Integer totalPage = (Integer)request.getAttribute("totalPage");

if(currPage == null || currPage <= 0 )
	currPage = 1;
	
if(totalPage == null || totalPage <= 0)
	totalPage = 1;
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>变更申请</title>

<link href="<%=path%>/admin/css/admin_right.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="main">
        <h1>待处理变更列表</h1>
        <hr />
        <h3>&nbsp;</h3>
        <table width="100%">
            <tr>
                <td class="table_head" width="100px">项目类别</td>
                <td class="table_head">项目名称</td>
                <td class="table_head" width="100px">时间</td>
                <td class="table_head" width="100px">操作</td>
            </tr>
            <s:if test="changeRecordVOList.size()!=0">
            <s:iterator id="changeRecordVOList" value="changeRecordVOList">
                <tr>
                <td> <s:property value="projectType"/></td>
                <td> <s:property value="projectName"/></td>
                <td> <s:property value="applyDate"/></td>
                <td>
                <a href="changeRecordDetail.action?changeRecordID=<s:property value='changeRecordID'></s:property>&returnpage=<%=path %>/changeRecordUnhandleList.action">变更详细</a>
                <br />
                <a href="projectInfoShow.action?projectID=<s:property value='changeRecordID.projectID'></s:property>&returnpage=<%=path %>/changeRecordUnhandleList.action">项目详细</a>
                </td>
           </tr> </s:iterator>
            </s:if>
            <s:else>
            
           <tr>
                <td colspan="4" align="center">暂无记录</td>
            </tr>
            
            </s:else>
 			<tr>
				<td colspan="4">
					<%if(currPage > 1){%>
					<a href="<%=path %>/changeRecordUnhandleList.action?currPage=1">首页</a> |
					<a href="<%=path %>/changeRecordUnhandleList.action?currPage=<%=currPage-1 %>">上一页</a> |
					<%} %>
					<span> 页面: <%=currPage %> </span>
					<%if(currPage < totalPage){%>
					| <a href="<%=path %>/changeRecordUnhandleList.action?currPage=<%=currPage+1 %>">下一页</a>
					| <a href="<%=path %>/changeRecordUnhandleList.action?currPage=<%=totalPage %>">尾页</a>
					<%} %>
				</td>
			</tr>
        </table>
    </div>
</body>
</html>
